﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="KetQua.aspx.cs" Inherits="KetQua" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div align="center">
    <asp:Label ID="lblThongBao" runat="server" 
        Text="Không tìm thấy kết quả theo yêu cầu!"></asp:Label>
        </div>
    <asp:DataList ID="dlsanpham" runat="server"  RepeatColumns="3" 
                    style="margin-left: 0px" Width="762px" 
        onselectedindexchanged="dlsanpham_SelectedIndexChanged" BackColor="White" 
        BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
        ForeColor="Black" GridLines="Horizontal">
        <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
        <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
        <ItemTemplate>
            <table class="style4" style="width : 240px; height:300px" bgcolor="White">
                <tr>
                    <td align="center">
                        <a href="chitietsanpham.aspx?MaSach=<%#Eval("MaSach") %>" title="" 
                                    style="text-decoration:none" >
                        <asp:Image ID="Image7" runat="server" Height="150px" 
                                    ImageUrl='<%# "image/"+ Eval("Hinh") %>' Width="100px" />
                        </a>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: center" align="center" height="20">
                        <asp:Label ID="Label1" runat="server" Font-Bold="True" ForeColor="#0000CC" 
                                    Text='<%# Eval("TenSach") %>'></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: center" align="center" height="20">
                        <asp:Label ID="Label2" runat="server" Font-Bold="True" ForeColor="#0000CC" 
                                    Text='<%# Eval("TacGia") %>'></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: center" align="center" height="20">
                        <asp:Label ID="Label3" runat="server" Font-Italic="True" ForeColor="Red" 
                                    Text='<%# Eval("DonGia") + " " +"VND" %>'></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="center" 
                                style="text-align: center; color: #0000FF; font-style: italic;" 
                                height="20">
                        <div style="width: 242px; height: 22px" align="center">
                            <a href="themsanphamvaogio.aspx?MaSach=<%#Eval("MaSach") %>"title="" 
                                        style="text-decoration: none">
                            <asp:Image ID="btnAddToCart" runat="server" Height="22px" ImageUrl="~/image/datmua_icon.jpg"
                                            Width="89px" style="margin-left: 13px" />
                            </a>&nbsp;&nbsp;&nbsp;</div>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
        <SelectedItemStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
    </asp:DataList>
    
</asp:Content>

